/* 通用业务接口*/

import require from "@/req/request";

// 查看图片接口
export const readImgUrl = '/api/comm/readImg?imgFileName='

// 获取字典信息
export function getMapBy(data: any) {
    return require({
        url: '/comm/getMapBy',
        method: 'get',
        data
    })
}

// 上传文件
export function uploadImg(data: any) {
    return require({
        url: '/comm/upload',
        method: 'post',
        data
    })
}

// 上传文件-富文本编辑器
export function uploadImgForWE(data: any) {
    return require({
        url: '/comm/uploadForWE',
        method: 'post',
        data
    })
}

// 获取img路径
export function readImg(data: any) {
    return require({
        url: '/comm/readImg',
        method: 'get',
        data
    })
}
